package net.forsuber.publish;

import net.forsuber.data.Record;

/**
 * User: lzap
 * Date: 25.7.2007
 * Time: 23:08:53
 */
public interface Publisher {

    /**
     * Prepare the publisher
     */
    public void open();

    /**
     * Publish the document.
     *
     * @param record the document (title, body, optional things)
     * @throws PublisherException when error occur
     */
    public void publish(Record record) throws PublisherException;

    /**
     * Clean up.
     */
    public void close();
}
